﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TntOrm.Attributes
{
    [AttributeUsage( AttributeTargets.Class )] 
    public class OrmTable : Attribute
    {
        protected string _MappingTableName;

        public string MappingTableName
        {
            get { return _MappingTableName; }
            set { _MappingTableName = value; }
        }

        private string _Title;

        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }

        private bool _InMenu;

        public bool InMenu
        {
            get { return _InMenu; }
            set { _InMenu = value; }
        }


        public OrmTable( string MappingTableName, string TitleName, bool IsInMenu )
        {
            _MappingTableName = MappingTableName;
            _Title = TitleName;
            _InMenu = IsInMenu;
        }
    }
}